package openinterminal.preferences;

import openinterminal.Activator;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import static openinterminal.preferences.PreferenceConstants.*;

/**
 * Sets the default preferences
 * @author Ivo van Dongen
 *
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	@Override
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		store.setDefault(PREFERENCES_TERMINAL_COMMAND, "/usr/X11/bin/xterm -e");
		store.setDefault(PREFERENCES_INITIAL_COMMAND, "cd " + PREFERENCES_DIR_VAR + " ; bash");
	}
	
}